package fp.poczadly.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.HandlerManager;

public class ClientFactoryImpl implements ClientFactory {

	LiveChatServiceAsync rpcService = GWT.create( LiveChatService.class );
	HandlerManager eventBus = new HandlerManager( null );
	AppController appController = new AppController( rpcService, eventBus );
	
	@Override
	public HandlerManager getEventBus() {
		return eventBus;
	}

	@Override
	public LiveChatServiceAsync getRpcService() {
		return rpcService;
	}
	
	@Override
	public AppController getAppController() {
		return appController;
	}

}
